package com.modouyu;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

/**
 * Created by Administrator on 2018/5/6.
 */

@SpringBootApplication
@MapperScan(basePackages = {"com.modouyu.novel.dao"})
public class NovelApplication extends SpringBootServletInitializer {


    public static void main(String[] args) {
        SpringApplication.run(NovelApplication.class, args);
    }

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(NovelApplication.class);
    }


}
